Redirect to login or register after oauth callback