Clean up html code

Fix minor bug in index when logged in and finished.