added login for functional tests