added some password verification stuff