Made User fields public
Fixed compile issues