Added login and register pages. Added a directive to match values of DOM elements.