Fixed expression in if statments for failure message. Need to figure out how to set attribute of struct