Removed stopPropagation from username and password fields of the login dialog. Should fix issue #135.
Fixed missing escaping of single quotes, fixes issue #143