added login logic
added account locking and error message
cleaned up formatting
Merge pull request #2 from GilFewster/login-functionality

Login functionality