Bugfix to user authentication service