working home page registration and login as part of index.php, integrating php and gui