login automaticly after register