Fixed an error where an incorrect login would essential render the whole app inoperable. Fixed Error message display.