admin stuff and some login fixes