Updated with Password Validation code- yet to implement the complete
requirement