changed from command to event for login route