Renamed isloggin function to isloggedin() to correct error in index.html