How to properly manage user access for a safe and secure website