reload user, better code in middleware