core: update credits at the end of login method