added encrypted password checking in preparation for account mgmt module of website