add automatical login after registration