implementing better login error response