last_seen field and middleware
remove unnecessary line
add test to check last_seen middleware
Merge branch 'feature/last_seen' into develop