Check that the password is not undefined
Log also data parameters in the event publisher
Merge pull request #79 from futurice/fixes

Minor changes to the password checking and logging