Modified save function in timelogs controller