created the moethods for the users controller