added check for password resource