Add next hidden field and redirect in login form