fix login page bugs