add migration to change column user_id to be unique in table userdetails
add "user_id" as last field in function "userdetail_params" in userdetails_controller.rb