Registartion controller(event handling with Register button)