Adding username password validation for the button