ui completed; adding js validation