minor bug fix to previous authentication feature