Modify error messages in login activity to show accurate information