added password hash for registration

Added crypt function to password registration