Fixed issues with registering, added logout button.