Some better login stuff
Moved searching to own controller