Replaced fixed user with id of 1 for currently logged user, closes #396.