working index to login page