Added encryption to password for user registration