Add header to include common files
Refactor JavaScript includes to footer.php
Check user credentials on login