set up new user, registration and session in index.html