Added Login, register, functions files and moved config.php