Implemented methods authenticateAfterValidation and authenticateBeforeValidation
Merge remote-tracking branch 'origin/master'