solidify register/login/logout, add form validation