Implemente authentication security check