No accounts-ui dependency

* Remove the need for accounts-ui as a dependency
* Fix it up so we don't use email for sign in if the email is optional part of sign up