Adding sha1 javascript class, creating functionality for register page.