Update module 'auth' and fix some bugs in migrations