added displaying of flashed messages to base.html. Currently serving as a check for login input