alert dialog, register fixes