more convenient login method