fix login form issue at main page