move registration code up to route, because ember reasons