Failedvalidation actions modified

#Modifications:
1. cases for failed validation action modified.
2. failedAuthAction is now an array containing default action for both
GET and POST seperately
3. token length set to 10 by default
4. requestType  parameter added to store the current request type