Password function tested

new to validate password too short on next commit