Your problem is display:none; applies to all your div s.
I pressed the class button:
<div id="login" class="login">
And make sure display:none; applies only to him
div.login { display: none; }
Then I hid your form on top
$('#view_form').hide();
Now working: http://jsbin.com/umugi5/3/
source share