add photo state
update login redirect
update photo state
add ngCordova