modifications to login page validation