Added password validation
Fixed namespace