tied  login up to Angular, POC submission code using angular controller.