change firstuser to afterlogin and update migration