fix login page errors