taken current_user out of profile def userdetail controller