Fix login so it knows what BASEPAGE is