Fixing local url and presenting the login view controller