create index file to redirect to main page or createaccount