Fix Register controller - emit login event