added loadfunction to load login.html