get fields

Separated out authentication
created func to get all fields