Fixed login issue with 'userhash' and error message formatting.