refactoring login to only use index.php
deleted update.php