fixed routing error when creating/login user