resolved small bug on authentication