barebone logincontroller