added registering, logging, both are accessing the local DB, and also i've added cookies for storing the logging status