fixed dynamic login issue