I have a login modal setup for my site, which works fine until the user is logged in. At that point, it always tries to take them to /users/username and gives me a blank screen.
This, inserted into my header as the modal, seems to be the problem:
<div id="login_modal" class="reveal-modal medium">
<p>Please login using your credentials received by email when you register</p>
$form = drupal_get_form('user_login');
$form['actions']['#prefix'] = '<p class="right login-block-links">'.l('Create new account' ,'user/register').' | <a href="'.url('user/password').'">'.t('I forgot my password').'</a></p>';
Any ideas? Thanks for your help!