added login and register pages, register page valides pw