Fixed LoginUser method generation functional