It appears that your modal is getting a class of .show code example
Example: show a modal
<a onclick=\"$('#login').modal('hide');$('#lost').modal('show');\" href='#'>Click</a>
<a onclick=\"$('#login').modal('hide');$('#lost').modal('show');\" href='#'>Click</a>