Fixed password hasing and updated sessions