Added Registration. Linked with Local database.