fixed some stuff in logincontroller