Added the functionality to check if  the login credentials are valid.

It only works right now where the username is admin and the password is
password