Update index.php

Added the Login Function