register with ajax, bugfixes database, csrf protection and layout fixes