fixed bug in Validator class, and changed name of GatewayController to AuthController