added method for password model