give user heads up for different login error and redirect to main page