Added Login middle ware.