Fix for LoginUser method