fixed db migration and adjusted registration form