Added password hashing, fixed templates