Wrote the controller for the account forms