Export now uses a file extension according to file_type
Check if @streams is not null before .each method
Fix bug when user is redirected after signing in with openid