poassword validation and some small fixes