Made user fields private.

Also added appropriate getters and setters.