rec: implement Log function

Also including the field Date (very important) in the userAction struct.

Related to #397.
rec: implement input validation in the Log function

Related to #397.