Fix for issues with logging event with metadata
LogEvent and UpdateUser now accept Map instead of requiring HashMap