Applying application level security