auth and registration improved, database added