login converted to Angular

still need to set the cookie