Optional password validation function
Updated README