My Conditional logic is not working as expected.