create method in user controllers