controller for registration added