Beginning stages of the refactoring process, moving things out of controller into service and creating a directive for account inputs