authenticate methode in direct login after registeration