Fix edit forms

Added close button, allowed users to click out of form, added "form
invalid" catch for students