added server side password validation to resetpass_post. Modularized some elements of validation so register_post and resetpass_post can share
change password now working and roughtly tested