Fixed bug in authentication for web interface

Signed-off-by: Ravn T-M <ravn.tm@gmail.com>