modified def user_params
form log and user new