219 - fixed issues with locals in the register page and added login page.
added validation - 226