Authentication System Boilerplate in PHP