Added Controller && Logic for Register