fixing minor issue with register route