Implemented first step of verifying the signature