fixing bugs/badgateway for registration admin