Fixed settings layout and forms

Form is now shown correctly.
Department and Semester are now populated automatically.
Errors or messages are now flashed using bootstrap alerts.
Email ID format is checked.