creating method for create new user on api