displays error messages for sign-in and sign-up properly