Added delete functions + bug fixes  for #130
Added update last login #130