added error page and main page, add button to test login