Updated to angular 1.2.1
Added loginstate