added registration and login form
fixed registration, return autocreate tables