changes index from 'login' to 'home'