edited messages
added error pages with messages