current_user function  added to usercontroller