Added logic to validate passed password, currently wip