Enhancing security for SaaS applications