have generatepassword func return pw instead of set it