modify login process; create beans