[#64] updated the method authenticate user