Assignment Functions Additions

Added if statements in case a field is left empty