Methods for checking validity of username and password

Also creates dialog with details to notify user if and when there’s an
error in his/her username or password