ect stuff

changed prepvar
query throws error on multiple rows
moved login and register js to new pages
made a shared css for error
added db-related constants
js helper function page