registering works, added logout button