fixing the database issue.
-editing a student is fixed, -fixing logout issue.