Moved auth lib to cms, fixed css bug