Fixing bug on register

Creating a controller for Register!
*Previous register is bugged!