make some security check