Added AND operator and moved paycheck conditional

removed second if statement and combined the conditional into the first
if statement using the && operator.  Tested in browser.