fix the target path from the login form