added link to index when registration/login was successful