added support for manual login with a button