Minor fix

Fixed a bug where the faculty couldn't log on.  Also fixed a bug where
the application wouldn't close properly.