added preferences to User. renamed getters and setters.