Common Security Mistakes and How to Avoid Them