Fix tests and some controller problems
Added login token model