added compare for passwords