TODO & Login form JS to XHTML