Added password hashing. Added DB constraints.