added login and register ability