Implemented login, and password and username checking.