removed uneeded functions from the User controller