now throwing a runtime exception if the method for serialization is not implemented by a subclass
credentials class now checks in constructor to see whether name and pass are valid
added method for verifying an action; made toData() method abstract
now verifying action in constructor and implemented toData