Replace deprecated setup_app with init_app
Update login view to handle oid