Fixed bug with passwords being hashed wrongly