Completed error checking on login and signup pages