Added Javascript to Registration

Also removed the checks from Login, as they're done in Registration now.