Add sanity checks for user password input.