removed flash from login page and corrected tests