Small fix to auth and redirect logic of the app