fix login and mapped tables