HELP with if statement and null varaibles?!?

Hi,  as you can see when you go to my page it alerts two variables as null

So I can't figure out if its reading the variables as null why is my if statement not working properly?
Since they both are null then the else should be what runs:

if((db.username != "null") && (db.password != "null")) {
		$("ul.home").append('<li class="ui-btn ui-btn-icon-right ui-li ui-btn-up-c" role="option" tabindex="-1" data-theme="c"><div class="ui-btn-inner"><div class="ui-btn-text"><a class="ui-link-inherit" href="#account">View Account</a></div><span class="ui-icon ui-icon-arrow-r"></span></div></li>');
	else {
		$("ul.home").append('<li class="ui-btn ui-btn-up-c ui-btn-icon-right ui-li" role="option" tabindex="-1" data-theme="c"><div class="ui-btn-inner"><div class="ui-btn-text"><a class="ui-link-inherit" href="#signup">Sign Up</a></div><span class="ui-icon ui-icon-arrow-r"></span></div></li>');		

Open in new window

But its not, its still passing the test (the first if) and showing the wrong option!  How do I get my if statement to work properly?? (read the null values)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

remove the quotes around null :

if((db.username != null) && (db.password != null)) {

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FairyBusinessAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.