Add some functions on index.php like displaying name and photo also checks if users is already login