update register and login views and tests

changed urls for log in/out and register to be top level
wrote test for registering new user and made it pass