Adding error message for invalid password