re #9 aded the login method, though for the moment there's only auto-generated code