adding vallidation for method names