updates for better authentication