fixed login and register user (added stream functionality)