Clear up error messages on lock and getpass