adds middleware to log activity time
removes comments and adds timestamp to accounts on creation
fixes typo in error message