working on password check directive