I created one custom page where i want to display log-in and registration form.
What i did is, i create one function which called from Menu hook as "drupal_get_form"
$data = drupal_get_form('user_login');
$data = drupal_get_form('user_register_form');
Now once i submit (either log-in or registration) the form without entering any data, its show form_set_error on both forms "username" text field.
I know both form element name for username textfield is same as "name" but it should not highlight both form element. It should be highlighted submitted form textfield only.
I want to highlight only submitted textfield.
Any help ??