fix identation and if structure
fix if/else error and change result variable for api_response
add relative date function for the last_seen key