Authentication and admin_bar fixes