Added logging, fixed some bug on user registration.
Deleted data