Performing security check.