added methods in user controller and model
added methods in user controller and model