fixed register route; made github login work