cleanup of login