tabbed header inside of form, fixed styles
changed if statements looking for userInfo.type to just look for userInfo

fixed type of undefined