Fixed encoding password on user registration