Fixed authentication issue #30, thanks to mondynus.