Fixed showing error on authentication failure