fixed loginElement1 and createUserElement1
Added cookie func to controllers and fixed order template