Add a functions.php helper
Introduce the concept of Model
Re-implement the sign-in process