handled login error cases