removes dirty url on login - fixes #40