added input validation during instantiation of Authentication
tests now use EC keypair