support for GET request enabled

#Modification: support added for GET requests, added a function to deal
with failure: private static function failedValidationAction()