method fix for custom authentication