Fix error feedback for 500 errors on login