Passing login details to and from view.controller