Added getRole() and role constants to User class.