Fixed issue with Use of uninitialized value in string when authenticating a user