set ternary statement to check for first name else email