index page login and register working