added password hash for registration

Added the crypt function for the password to the registration form.