Boilerplate from PHP Login/Register System powered by Smarty