Login error handling in UI