Refactoried the create user action by adding a few methods