BUG950 - Users can't login

Found issue with login function, wasn't correctly handling long passwords. Fixed by updating hash method.