signup implemented with database. added error page.