Fixed user authentication error

Refer to issue #52