Input validation for login and sign-up pages as well as failure errors for login and sign-up