Fix wrong parameter passed to User::register function
Hash the password string before store it.