Cleanup login_sql_pw

- Use warn() instead puts().
- Check for longer than allowed passwords.
- Zero out the supplied password and the salted digest before exiting.
- Check for a short write while BIO_write()-ing.