Use the script inside if you want a log in system for a OS or something like that. More info inside.
If you use this, please give credit to @Critic2100.