modified to stop edit of key field for student