input fields validation and sha1