Filled in the register and login controllers