Added check to ensure passwords at least 6 chars.