user logging done but not so well..