Added getName method and fixed error labels style.