Update RegisterStudent and RegisterTeacher to decrypt usernames before saving to database. Update to check for EGN before saving.