Added controller for registration