Make email and password undefined if string is empty, null, etc...

Let me know if this needs testing (passing existing tests)... just a simple ternary operator

I needed to pinpoint exactly where the user is entering the wrong information and before this change, the request came into the server with empty strings after an initial login attempt. This ensures the email and password stays undefined when the string is empty.